<!doctype html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<p>
    今天是:<span th:text="${#dates.format(today,'yyyy-MM-dd')}">2020-03-30</span>
</p>
<p>
    今天是:<span th:text="${#calendars.format(#calendars.createNow(),'yyyy-MM-dd')}"></span>
</p>
<p>
    1234.567 格式化为货币: <span th:text="${#numbers.formatCurrency(1234.567)}"></span>
</p>
<p>
    1234.567 格式化为百分比:<span th:text="${#numbers.formatPercent(0.1234567,0,5)}"></span>
</p>
<p>
    字符串 "hello" 转为大写:<span th:text="${#strings.toUpperCase('hello')}"></span>
</p>
<p>
    字符串 "hello" 长度:<span th:text="${#strings.length('hello')}"></span>
</p>
<p>
    布尔值 true 取反:<span th:text="${#bools.isTrue(!true)}"></span>
</p>
<p>
<!--    列表 ['a', 'b', 'c'] 的长度:<span th:text="${#lists.size(['a', 'b', 'c'])}"></span>-->
</p>

</body>
</html>